export interface ResponseData {
	code: number;
	message: string;
	ok: boolean;
}

// 提交订单接口返回的数据ts类型
export interface SubmitOrder extends ResponseData {
	data: number;
}

// 订单详情数据ts类型
export interface orderInfo {
	id: number;
	createTime: string;
	updateTime: string;
	isDeleted: number;
	param: {
		orderStatusString: string;
	};
	userId: number;
	outTradeNo: string;
	hoscode: string;
	hosname: string;
	depcode: string;
	depname: string;
	scheduleId: string;
	title: string;
	reserveDate: string;
	reserveTime: number;
	patientId: number;
	patientName: string;
	patientPhone: string;
	hosRecordId: string;
	number: number;
	fetchTime: string;
	fetchAddress: string;
	amount: number;
	quitTime: string;
	orderStatus: number;
}

// 订单接口类型
export interface OrderResponseData extends ResponseData {
	data: orderInfo;
}
//获取二维码接口返回的数据ts类型
export interface PayInfo {
	codeUrl: string;
	orderId: number;
	totalFee: number;
	resultCode: string;
}

export interface Qrcode extends ResponseData {
	data: PayInfo;
}

// 查询支付结果的ts数据类型
export interface PayResult extends ResponseData {
	data: boolean;
}

// 代表一个用户的数据类型
export interface UserInfo {
	id: number;
	createTime: string;
	updateTime: string;
	isDeleted: number;
	param: {};
	openid: null;
	nickName: null;
	phone: string;
	name: string;
	certificatesType: string;
	certificatesNo: string;
	certificatesUrl: null;
	authStatus: number;
	status: number;
}

// 获取用户信息接口的ts类型
export interface UserInfoResponseData extends ResponseData {
	data: UserInfo;
}

// 证件类型的数据ts
export interface CertationType {
	id: number;
	createTime: string;
	updateTime: string;
	isDeleted: number;
	param: {};
	parentId: number;
	name: string;
	value: string;
	dictCode: string;
	hasChildren: boolean;
}

export type CertationArr = CertationType[];

export interface CertationTypeResponseData extends ResponseData {
	data: CertationArr;
}

// 用户携带ts参数类型
export interface UserParams {
	certificatesNo: string;
	certificatesType: string;
	certificatesUrl: string;
	name: string;
}

// 表示一个订单的类型
export interface order {
	id: number;
	createTime: string;
	updateTime: string;
	isDeleted: number;
	param: {
		orderStatusString: string;
	};
	userId: number;
	outTradeNo: string;
	hoscode: string;
	hosname: string;
	depcode: string;
	depname: string;
	scheduleId: null;
	title: string;
	reserveDate: string;
	reserveTime: number;
	patientId: number;
	patientName: string;
	patientPhone: string;
	hosRecordId: string;
	number: number;
	fetchTime: string;
	fetchAddress: string;
	amount: number;
	quitTime: string;
	orderStatus: number;
}

// 表示订单数组
export type records = order[];

// 表示订单接口的数据类型
export interface userOrderResponseData extends ResponseData {
	data: {
		total: number;
		size: number;
		current: number;
		orders: [];
		hitCount: boolean;
		searchCount: boolean;
		pages: number;
		records: records;
	};
}

// 就诊人信息ts类型
export interface User {
	id: number;
	createTime: string;
	updateTime:string;
	isDeleted: number;
	param: {
		certificatesTypeString: string;
		contactsCertificatesTypeString: string;
		cityString: null;
		fullAddress: string;
		districtString: null;
		provinceString: null;
	};
	userId: number;
	name: string;
	certificatesType: string
	certificatesNo:string;
	sex: number;
	birthdate:string;
	phone:string;
	isMarry: number;
	provinceCode: null;
	cityCode: null;
	districtCode: null;
	address: string;
	contactsName: string;
	contactsCertificatesType: string;
	contactsCertificatesNo: string;
	contactsPhone: string;
	isInsure: number;
	cardNo: null;
	status:string;
}
// 全部的就诊人信息数组
export type AllUser = User[]
// 获取全部就诊人信息的类型
export interface ALlUserResponseData extends ResponseData{
    data:AllUser
}
// 订单状态的ts类型
export interface OrderState{
    "comment": string,
    "status": number
}
export type AllOrderState = OrderState[]
// 获取所有的订单状态返回的数据类型
export interface AllOrderStateResponseData extends ResponseData{
    data:AllOrderState
}
